/*
* SyncBailHook SyncBailHook同步熔断保险钩子,即return一个非undefined的值，则不再继续执行后面的监听函数
*/
const { SyncBailHook } = require('../real-tapable');
// const { SyncBailHook } = require('tapable');

class Test {
    hooks = {
        arch: new SyncBailHook(['arg1'])
    }
}
const test = new Test();
test.hooks.arch.tap('yxfan', (say) => {
    console.log(say, ': yxfan');
    return 'yxfan 今天调休啦';
    // return undefined 则继续往下执行
})
test.hooks.arch.tap('cheney', (say) => {
    console.log(say, ': cheney');
})

test.hooks.arch.call('hello')